package main

import "fmt"

type Test interface {
	Print()
}

type Student struct {
	name string
	age int
	score int
}

func (p *Student) Print() {
	str := fmt.Sprintf("name=[%s] age=[%d] score=[%d]",p.name,p.age,p.score)
	fmt.Println(str)
}
func main() {
	var t Test = &Student{"zhansan",18,90}
	t.Print()
	fmt.Println(t)
}
